package com.meilingcloud.biobank.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilingcloud.biobank.domain.FamilySource;

/**
 * 家系样本源 Service接口
 *
 * @author chenl
 * @date 2021-06-22
 */
public interface IFamilySourceService extends IService<FamilySource> {

    /**
     * 非选中状态下（id为空）新增
     */
    boolean saveSource(FamilySource familySource);

    /**
     * 选中状态（id不为空）新增关联样本源
     */
    boolean saveRelateSource(FamilySource familySource);

    FamilySource getInfoById(Long familySourceId);

    boolean removeSourceById(Long familySourceId);

    boolean delRelateSource(FamilySource familySource);
}
